package com.congee02.modelshellmvn.entity.account;

public interface AccountRoleDefinition {

    int USER = 1;
    int TRAINER = 1 << 1;

    int SYS_ADMIN = 1 << 2;

    int DEFAULT_ROLE = USER;

    static int composeRole(int... roles) {
        int result = 0;
        for (int role : roles) {
            result |= role;
        }
        return result;
    }

}
